package com.bgs.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 店铺表
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Store对象", description="店铺表")
public class StoreTow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "店铺id")
      @TableId(value = "store_id", type = IdType.AUTO)
    private Integer storeId;

    @ApiModelProperty(value = "用户id(谁开的这个店铺)")
    private Integer beforeUserId;

    @ApiModelProperty(value = "店铺名称")
    private String storeName;

    @ApiModelProperty(value = "店铺头像")
    private String storeImg;

    @ApiModelProperty(value = "店铺状态")
    private String storeStatus;

    private List<OrderDetail> orderDetails;

    private Boolean hasChildren = true;
    List<OrderDetail> children = new ArrayList<>();

}
